<?php
App::uses('AppModel', 'Model');
/**
 * Interaction Model
 *
 */
class Interaction extends AppModel {

/**
 * Use table
 *
 * @var mixed False or table name
 */
	public $useTable = 'interactions';
/**
 * Primary key field
 *
 * @var string
 */
	
	public $validate = array(
			'i_details' => array(
				'alphaNumeric' => array(
					'rule'     => array('custom', '/^[a-z0-9 ]*$/i') ,
					'message'  => 'Letters and Numbers only'
				),
			'notEmpty' => array(
					'rule' => 'notEmpty',
					'message'  => 'Details can not be left empty'
				)
			)
		);
	
	public $primaryKey = 'i_id';
	//ADD TO ARRAY EMPLOYEE INFO
	var $belongsTo = array('Office' => array('className' => 'Office','foreignKey' => 'o_id'),
							'int_type' => array('className' => 'IntType','foreignKey' => 'i_type'),
							'Employee' => array('className' => 'Employee','foreignKey' => 'e_id')
						);
						
}
